package persistencia;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class Dao {	
	

    Connection con;
    PreparedStatement stmt;
    ResultSet rs;

    public void conectar()throws Exception {

        Class.forName("org.postgresql.Driver");
        con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/questao","admin","admin");
        
    }

    public void desconectar()throws Exception{
        con.close();
    }


}
